﻿<UserControl x:Class="Reactor.Client.Views.OrphanServiceForm"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit">
    
    <Grid x:Name="LayoutRoot">
        <Controls:DataForm x:Name="adoptionForm" 
                                  CurrentItem="{Binding}"
                                  IsEnabled="{Binding IsBusy, Converter={StaticResource NotOperatorValueConverter}}"
                                  AutoEdit="True" 
                                  Header="Confirm your intention to orphan the following service" 
                                  Style="{StaticResource DataFormStyle}">
            <Controls:DataForm.EditTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical">
                        <Controls:DataField>
                            <TextBlock Text="{Binding CoreName, Mode=OneTime}" />
                        </Controls:DataField>
                        <Controls:DataField>
                            <TextBlock Text="{Binding ServiceDisplay, Mode=OneTime}" />
                        </Controls:DataField>
                    </StackPanel>
                </DataTemplate>
            </Controls:DataForm.EditTemplate>
        </Controls:DataForm>
    </Grid>
</UserControl>
